package com.mm.service;/**
 * @author wdx
 * @create 2021-09-03 11:07
 */

import com.spring.*;

/**
 * @author wdx
 * @date 2021年09月03日 11:07
 */
@Component("userService")
public class UserService implements BeanNameAware, InitiallizingBean {

    @Autowired
    OrderService orderService;

    private String name;


    public void test(){
        System.out.println(orderService);
    }

    @Override
    public String setBeanName(String beanName) {
//        System.out.println("beanNameAware:" + beanName);
        return beanName;
    }


    @Override
    public String afterPropertiesSet() throws Exception {
        System.out.println("初始化");
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
